package org.example.model.common.enums;

import com.baomidou.mybatisplus.annotation.IdType;

/**
 * 有关redis数据库key值的枚举值
 */
public enum RedisCodeEnum {
    A(":"),


    //用户模块
    LOGIN ("user:login:"),//用户登录
    REGISTER_EMAIL("user:register:email:"),//用户注册发送验证码
    POINT_DETAIL("user:rule:point:"),//用户积分细节
    FORGET_PASSWORD("user:forget:password:"),//忘记密码
    PRIZE_EXCHANCE("user:prize:exchange:"),//积分奖品
    PRIZE("user:prize:detail:"),//奖品详情
    WX_SESSION_ID("user:wx:session:id:"),
    REGISTER_CODE("user:login:code:"),//图像验证码


    //展商信息模块
    EXHIBITOR("exhibitor:information:"),//展商信息
    EXPERT("expert:information:"),//专家信息

    //新闻和资讯模块
    NEWS("news:information："),//新闻信息
    DOWNLOAD("download:information:"),

    //论坛模块
    FORUM_PASSAGE("forum:passage:"),//文章
    PASSAGE_LIKE("forum:passage:like:"),//点赞文章
    PASSAGE_COMMENT("forum:passage:comment:"),//发布评论
    PASSAGE_COUNT("forum:passage:count"),//文章浏览量
    PASSAGE_COMMENT_LIKE("forum:passage:comment:like:"),//点赞评论

    //活动模块
    ACTIVITY("activity:info:"),
    //议程
    AGENDA("agenda:info:"),
        ;

    private String msg;

    RedisCodeEnum(String msg) {
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }
}
